package set;

import java.util.HashSet;
import java.util.Set;

public class UserInfo {

	private String userId;
	private Integer age;
	private UserName userName;
	private Set<UserAddress> userAddresses = new HashSet<UserAddress>();
	private Set<Email> emails = new HashSet<Email>();
	
	public void addEmail(Email email) {
		emails.add(email);
	}
	
	public void addAddress(UserAddress address) {
		userAddresses.add(address);
	}
	
	public Set getUserAddresses() {
		return userAddresses;
	}
	public void setUserAddresses(Set<UserAddress> userAddresses) {
		this.userAddresses = userAddresses;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public UserName getUserName() {
		return userName;
	}
	public void setUserName(UserName userName) {
		this.userName = userName;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public Set getEmails() {
		return emails;
	}
	public void setEmails(Set<Email> emails) {
		this.emails = emails;
	}
}
